package top.gbiot.device.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import top.gbiot.common.annotation.Excel;
import top.gbiot.common.core.domain.BaseEntity;

/**
 * 设备管理对象 iot_device
 * 
 * @author gb
 * @date 2021-02-13
 */
public class IotDevice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 设备标识 */
    private String deviceId;

    /** 项目标识 */
    @Excel(name = "项目标识")
    private String projectId;

    /** 设备SN码 */
    @Excel(name = "设备SN码")
    private String deviceSn;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String deviceName;

    /** 设备类型 */
    @Excel(name = "设备类型")
    private String deviceType;

    /** 设备位置 */
    @Excel(name = "设备位置")
    private String devicePosition;

    /** 设备图片 */
    @Excel(name = "设备图片")
    private String deviceImg;

    /** 设备状态 */
    @Excel(name = "设备状态")
    private String deviceState;

    /** 设备描述 */
    private String deviceDescription;

    /** 设备软件版本号 */
    @Excel(name = "设备软件版本号")
    private String deviceSoftversion;

    /** 设备阈值_最小值 */
    @Excel(name = "设备阈值_最小值")
    private BigDecimal deviceThresholdmin;

    /** 设备阈值_最大值 */
    @Excel(name = "设备阈值_最大值")
    private BigDecimal deviceThresholdmax;

    /** 备注 */
    private String note;

    /** 创建人 */
    @Excel(name = "创建人")
    private String creator;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    /** 修改人 */
    @Excel(name = "修改人")
    private String modifier;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date modifyDate;

    public void setDeviceId(String deviceId) 
    {
        this.deviceId = deviceId;
    }

    public String getDeviceId() 
    {
        return deviceId;
    }
    public void setProjectId(String projectId) 
    {
        this.projectId = projectId;
    }

    public String getProjectId() 
    {
        return projectId;
    }
    public void setDeviceSn(String deviceSn) 
    {
        this.deviceSn = deviceSn;
    }

    public String getDeviceSn() 
    {
        return deviceSn;
    }
    public void setDeviceName(String deviceName) 
    {
        this.deviceName = deviceName;
    }

    public String getDeviceName() 
    {
        return deviceName;
    }
    public void setDeviceType(String deviceType) 
    {
        this.deviceType = deviceType;
    }

    public String getDeviceType() 
    {
        return deviceType;
    }
    public void setDevicePosition(String devicePosition) 
    {
        this.devicePosition = devicePosition;
    }

    public String getDevicePosition() 
    {
        return devicePosition;
    }
    public void setDeviceImg(String deviceImg) 
    {
        this.deviceImg = deviceImg;
    }

    public String getDeviceImg() 
    {
        return deviceImg;
    }
    public void setDeviceState(String deviceState) 
    {
        this.deviceState = deviceState;
    }

    public String getDeviceState() 
    {
        return deviceState;
    }
    public void setDeviceDescription(String deviceDescription) 
    {
        this.deviceDescription = deviceDescription;
    }

    public String getDeviceDescription() 
    {
        return deviceDescription;
    }
    public void setDeviceSoftversion(String deviceSoftversion) 
    {
        this.deviceSoftversion = deviceSoftversion;
    }

    public String getDeviceSoftversion() 
    {
        return deviceSoftversion;
    }
    public void setDeviceThresholdmin(BigDecimal deviceThresholdmin) 
    {
        this.deviceThresholdmin = deviceThresholdmin;
    }

    public BigDecimal getDeviceThresholdmin() 
    {
        return deviceThresholdmin;
    }
    public void setDeviceThresholdmax(BigDecimal deviceThresholdmax) 
    {
        this.deviceThresholdmax = deviceThresholdmax;
    }

    public BigDecimal getDeviceThresholdmax() 
    {
        return deviceThresholdmax;
    }
    public void setNote(String note) 
    {
        this.note = note;
    }

    public String getNote() 
    {
        return note;
    }
    public void setCreator(String creator) 
    {
        this.creator = creator;
    }

    public String getCreator() 
    {
        return creator;
    }
    public void setCreateDate(Date createDate) 
    {
        this.createDate = createDate;
    }

    public Date getCreateDate() 
    {
        return createDate;
    }
    public void setModifier(String modifier) 
    {
        this.modifier = modifier;
    }

    public String getModifier() 
    {
        return modifier;
    }
    public void setModifyDate(Date modifyDate) 
    {
        this.modifyDate = modifyDate;
    }

    public Date getModifyDate() 
    {
        return modifyDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("deviceId", getDeviceId())
            .append("projectId", getProjectId())
            .append("deviceSn", getDeviceSn())
            .append("deviceName", getDeviceName())
            .append("deviceType", getDeviceType())
            .append("devicePosition", getDevicePosition())
            .append("deviceImg", getDeviceImg())
            .append("deviceState", getDeviceState())
            .append("deviceDescription", getDeviceDescription())
            .append("deviceSoftversion", getDeviceSoftversion())
            .append("deviceThresholdmin", getDeviceThresholdmin())
            .append("deviceThresholdmax", getDeviceThresholdmax())
            .append("note", getNote())
            .append("creator", getCreator())
            .append("createDate", getCreateDate())
            .append("modifier", getModifier())
            .append("modifyDate", getModifyDate())
            .toString();
    }
}
